﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// Summary description for _iIdProject
/// </summary>
public class Project
{
    private int _iId;
    private String _sName;
    private String _sDescription;
    private DateTime _dStartingDate;
    private DateTime _dCompletionDate;
    private float _fEstimatedDuration;
    private String _sObjectives;
    private System.Collections.Generic.List<HumanResource> _lResources;

    /// <summary>
    /// Contructor vacio
    /// </summary>
	public Project()
	{
        this._lResources = new List<HumanResource>();
	}

    /// <summary>
    /// Constructor completo para el modificar
    /// </summary>
    public Project(int iId, String sName, String sDescription, DateTime dStartingDate, DateTime dCompletionDate, float fEstimatedDuration, String sObjectives)
    {
        this.iId = iId;
        this.sName = sName;
        this.sDescription = sDescription;
        this.dStartingDate = dStartingDate;
        this.dCompletionDate = dCompletionDate;
        this.fEstimatedDuration = fEstimatedDuration;
        this.sObjectives = sObjectives;
        this._lResources = new List<HumanResource>();
    }

    /// <summary>
    /// Constructor sin Id para el insertar
    /// </summary>
    public Project(String sName, String sDescription, DateTime dStartingDate, DateTime dCompletionDate, float fEstimatedDuration, String sObjectives)
    {
        this.sName = sName;
        this.sDescription = sDescription;
        this.dStartingDate = dStartingDate;
        this.dCompletionDate = dCompletionDate;
        this.fEstimatedDuration = fEstimatedDuration;
        this.sObjectives = sObjectives;
        this._lResources = new List<HumanResource>();
    }

    public int iId
    {
        get
        {
            return _iId;
        }
        set
        {
            _iId = value;
        }
    }

    public String sName
    {
        get
        {
            return _sName;
        }
        set
        {
            _sName = value;
        }
    }

    public String sDescription
    {
        get
        {
            return _sDescription;
        }
        set
        {
            _sDescription = value;
        }
    }

    public DateTime dStartingDate
    {
        get
        {
            return _dStartingDate;
        }
        set
        {
            _dStartingDate = value;
        }
    }

    public DateTime dCompletionDate
    {
        get
        {
            return _dCompletionDate;
        }
        set
        {
            _dCompletionDate = value;
        }
    }

    public float fEstimatedDuration
    {
        get
        {
            return _fEstimatedDuration;
        }
        set
        {
            _fEstimatedDuration = value;
        }
    }

    public String sObjectives
    {
        get
        {
            return _sObjectives;
        }
        set
        {
            _sObjectives = value;
        }
    }

    public System.Collections.Generic.List<HumanResource> lResources
    {
        get
        {
            return _lResources;
        }
        set
        {
            _lResources = value;
        }
    }

}
